package com.skyblue.service.impl;

import com.skyblue.dao.UserMapper;
import com.skyblue.entity.User;
import com.skyblue.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by toutou on 2018/5/27.
 */
@Service
public class UserServiceImpl implements LoginService {
    @Autowired
    private UserMapper userMapper;

    public int register(User user) {
        return userMapper.register(user);
    }

    public List<User> check(String account) {
        return userMapper.check(account);
    }

    @Override
    public int registerApply(User user) {
        return userMapper.registerApply(user);
    }

    @Override
    public List<User> checkApply(String account) {
        return userMapper.checkApply(account);
    }

    @Override
    public List<User> applyuser() {
        return userMapper.applyuser();
    }

    @Override
    public List<User> handleApply() {
        return userMapper.handleApply();
    }

    @Override
    public int updataUser(User user) {
        return userMapper.updataUser(user);
    }

    @Override
    public int updataApplyUser(User user) {
        return userMapper.updataApplyUser(user);
    }

    @Override
    public int refused(Integer id) {
        return userMapper.refused(id);
    }

    @Override
    public int refusedAll() {
        return userMapper.refusedAll();
    }

    @Override
    public int approval(Integer id) {
        return userMapper.approval(id);
    }

    @Override
    public int approvalAll() {
        return userMapper.approvalAll();
    }

    @Override
    public List<User> checkUser() {
        return userMapper.checkUser();
    }
}
